<%@ tag language="java" pageEncoding="UTF-8" description="Renderiza as mensagens de erro" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<style>
	.success-messages {
		margin-top: 20px;					
		font-size: 14px;		
		margin-bottom: 15px;	
		text-align: left;		
	}
	.errors-messages {
		margin-top: 20px;			
		font-size: 14px;		
		margin-bottom: 15px;
		margin-left: 70px;
		text-align: left;		
		color: red;
	}
</style>

<s:if test="hasActionErrors()">
	<div class="errors-messages">
		<s:actionerror />
	</div>
</s:if>

<s:if test="hasActionMessages()">
	<div class="success-messages">
		<s:actionmessage />
	</div>
</s:if>